Microsoft.Billing and Microsoft.Consumption swagger changes for GTM (DoNotMerge)#4484
Microsoft.Billing and Microsoft.Consumption swagger changes for GTM (DoNotMerge)#4484sandeepkatumalla wants to merge 29 commits intoAzure:masterfrom
Conversation
Adding Lots to Consumption RP
Add pricesheet download api to Microsoft.Billing
Automation for azure-sdk-for-jsEncountered an unknown error: (azure-sdk-for-js)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
sdk_tag=sdk_tag
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 254, in generate_sdk_from_git_object
with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 272, in manage_git_folder
clone_to_path(gh_token, temp_dir, split_git_id[0], branch_or_commit=branch, pr_number=pr_number)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 212, in clone_to_path
repo.git.checkout(branch_or_commit)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git checkout 1175cb2b1474a553d64c0f0b846b41224a5c2cdd
stderr: 'fatal: reference is not a tree: 1175cb2b1474a553d64c0f0b846b41224a5c2cdd' |
Automation for azure-sdk-for-pythonEncountered an unknown error: (azure-sdk-for-python)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
sdk_tag=sdk_tag
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 254, in generate_sdk_from_git_object
with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 272, in manage_git_folder
clone_to_path(gh_token, temp_dir, split_git_id[0], branch_or_commit=branch, pr_number=pr_number)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 212, in clone_to_path
repo.git.checkout(branch_or_commit)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git checkout 1175cb2b1474a553d64c0f0b846b41224a5c2cdd
stderr: 'fatal: reference is not a tree: 1175cb2b1474a553d64c0f0b846b41224a5c2cdd' |
Automation for azure-sdk-for-goEncountered an unknown error: (azure-sdk-for-go)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 33, in exception_to_github
yield context
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 170, in rest_handle_action
return rest_pull_close(body, restapi_repo, sdk_pr_target_repo, sdkbase, sdk_tag)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github.py", line 185, in rest_pull_close
rest_pr_management(rest_pr, sdk_pr_target_repo, sdk_tag, sdk_default_base)
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/restapi/github_handler.py", line 151, in rest_pr_management
sdk_tag=sdk_tag
File "/usr/local/lib/python3.6/dist-packages/swaggertosdk/SwaggerToSdkNewCLI.py", line 254, in generate_sdk_from_git_object
with manage_git_folder(gh_token, Path(temp_dir) / Path("rest"), branched_rest_api_id, pr_number=pr_number) as restapi_git_folder, \
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 272, in manage_git_folder
clone_to_path(gh_token, temp_dir, split_git_id[0], branch_or_commit=branch, pr_number=pr_number)
File "/usr/local/lib/python3.6/dist-packages/azure_devtools/ci_tools/github_tools.py", line 212, in clone_to_path
repo.git.checkout(branch_or_commit)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "/usr/local/lib/python3.6/dist-packages/git/cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git checkout 1175cb2b1474a553d64c0f0b846b41224a5c2cdd
stderr: 'fatal: reference is not a tree: 1175cb2b1474a553d64c0f0b846b41224a5c2cdd' |
|
Working on some high pri NET sdk deliverables, reassigning |
| { | ||
| "parameters": { | ||
| "api-version": "2018-11-01-preview", | ||
| "billingAccountId": "04e9d123-ae03-5621-6c17-e70da00924ee", |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
| "company": "Test Account", | ||
| "accountType": "Organization", | ||
| "address": { | ||
| "AddressLine1": "Test Address", |
| } | ||
| }, | ||
| { | ||
| "id": "providers/Microsoft.Billing/billingAccounts/2000200/billingProfile/345987/invoices/1383724", |
There was a problem hiding this comment.
Let's be consistent in whether we prefix the id with a "/". I'm seeing two conventions in this PR.
| "202": { | ||
| "headers": { | ||
| "Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2018-07-31", | ||
| "Retry-After": "60", |
There was a problem hiding this comment.
Retry-After needs to be an integer, not a string
| "name": "productSummaryId1", | ||
| "type": "Microsoft.Consumption/products", | ||
| "properties": { | ||
| "productTypeId": "A12345", |
There was a problem hiding this comment.
Having a property "productTypeId" and "productType" implies the latter is an actual (expanded) resource. I believe it's simply a localized name, in which case I'd argue productType should be called e.g. productTypeName.
| "billingAccountId": "{billingAccountId}", | ||
| "parameters": { | ||
| "request": { | ||
| "displayName": "invoiceSectionName1", |
There was a problem hiding this comment.
displayName/billingProfileId should be nested in a "properties" object?
jhendrixMSFT
left a comment
There was a problem hiding this comment.
Please take a look at the model validation failures here. These will need to be fixed.
|
@sandeepkatumalla has this new API version been reviewed by ARM? |
|
We have a review scheduled in 5 minutes with Arm
…On Fri, Nov 16, 2018, 08:51 Joel Hendrix ***@***.*** wrote:
@sandeepkatumalla <https://github.com/sandeepkatumalla> has this new API
version been reviewed by ARM?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4484 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmmKJP4tinDn7SLuOjC3Txi84sOeTZwIks5uvu0tgaJpZM4YjazK>
.
|
|
Signing off from ARM side. Only thing in contention looked to be billingProperty - name of this entity is confusing and does not clarify what info the user can expect from this resource. Also, this does not seem to be a resource as it does not have the id, name and type properties. Is this a singleton? If yes, may be we could have had the name as "default". else if could have been modeled as a POST. POST .../Microsoft.Billing/listBillingProperties. And that would have allowed to make it possible to have any shape for the response (without having to include id, name and type) |
| "displayName": "Test Account", | ||
| "company": "Test Account", | ||
| "accountType": "Organization", | ||
| "address": { |
There was a problem hiding this comment.
address is being returned as billingAddress in API response
|
@sandeepkatumalla any update? |
|
Please go ahead and close this. We already have our manifest reviewed and
approved. When going GA, we'll come up with a fresh review.
…On Fri, Nov 30, 2018 at 12:29 PM Joel Hendrix ***@***.***> wrote:
@sandeepkatumalla <https://github.com/sandeepkatumalla> any update?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4484 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmmKJGihZWA9WWtIkXx_L6SKghOp0CJaks5u0ZUugaJpZM4YjazK>
.
|
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist: